import {
    request
} from "./request";
import qs from "qs";

//  获取评论列表
export function getDiscussionList(obj) {
    return request({
        url: "ScDiscussion/getDiscussionByCompanyId",
        method: "post",
        data: qs.stringify(obj)
    });
}
//获取商品列表
export function getProductList(obj) {
    return request({
        url: "scProduct/getProductListByCompanyIdNoPage",
        method: "post",
        data: qs.stringify(obj)
    });
}
//根据id删除问答
export function deleteDiscussion(obj) {
    return request({
        url: "ScDiscussion/deleteDiscussion",
        method: "post",
        data: qs.stringify(obj)
    });
}
//根据id置顶问答
export function TopDiscussion(obj) {
    return request({
        url: "ScDiscussion/topDiscussion",
        method: "post",
        data: qs.stringify(obj)
    });
}
